home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 1182 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.9 KB

  1. Date: Thu, 10 Mar 1994 06:19:33 -0500
  2. From: "Nicholas S Castellano" <entropy@terminator.rs.itd.umich.edu>
  3. To: binder@rbg.informatik.th-darmstadt.de
  4. In-Reply-To: Thomas Binder (Gryf)'s message of Wed, 9 Mar 94 13:29:35 MEZ <199403091233.HAA06526@terminator.rs.itd.umich.edu>
  5. Subject: Probs with MiNTLib
  6.  
  7. >From: Thomas Binder (Gryf) <binder@rbg.informatik.th-darmstadt.de>
  8.  
  9. >Hi all!
  10. >
  11. >As I played around with the MiNTLibs (PL 42, but the diffs to 43 and 44 show
  12. >no differences in the files concerning my problems) I recognized two things:
  13. >
  14. >- scanf doesn't work properly with plain TOS
  15.  
  16. As dsb already said, this has been fixed.
  17.  
  18. >- on TOS 4.01 stderr won't work
  19.  
  20. >The second problem is due to an error(?) in the Falcon-TOS: Fforce(2, -1)
  21. >returns EINHNDL, so anything written to stderr never appears on the screen.
  22. >As far as I know, this Fforce-call was documented by ATARI, so I wondered why
  23. >it didn't work. I then tried calling Fopen("CON:", 2) and *suprise*: I get
  24. >handle 6, instead of -1 (as said in the german 'Profibuch'). So one solution
  25. >(useable for all TOS-versions) would be calling Fforce(2, Fdup(1)), but since
  26. >Fdup has some severe problems, I didn't use this way. Instead, I tried calling
  27. >Fforce(2, Fopen("CON:", 2)), this works very nice. On old TOSes, the Fopen-
  28. >call returns -1, on newer ones 6 (or higher), and Fforce will work again. The
  29. >only disadvantage of this method is the the handle returned by the Fopen-call
  30. >has to be closed (if it is >= 6), but that can easily be done in function
  31. >exit. What do you think about that?
  32.  
  33. Does this happen only when running plain TOS 4.01, or also with MiNT?
  34. If it happens with MiNT as well, I'd say this TOS bug is better off
  35. being fixed in the MiNT kernel or in a TOS patch.
  36.  
  37. Cheers,
  38. entropy
  39.  
  40. --
  41. entropy -- it's not just a good idea, it's the second law.
  42. Personal mail:      entropy@gnu.ai.mit.edu
  43. MiNT library mail:  entropy@terminator.rs.itd.umich.edu
  44. "what do you have against octal?" -jrb
  45.  
  46.